-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support storage size unit and show error message correctly #1714
Support storage size unit and show error message correctly #1714
Conversation
@xianli123 Could you check the UI changes? |
@DaoDaoNoCode Thanks for doing that. It looks good to me. |
a1c43a8
to
7ca85d2
Compare
This PR should go to |
7ca85d2
to
c5a4016
Compare
updatePvcDescription(pvcName, namespace, createData.nameDesc.description, { dryRun }), | ||
); | ||
} | ||
if (getPvcTotalSize(existingData) !== createData.size) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If a previous request was made but the status hasn't yet updated, we are still making a patch request for the exact same request.
import ExistingConnectedNotebooks from './ExistingConnectedNotebooks'; | ||
|
||
import './ManageStorageModal.scss'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's odd to me that there is a generic style in ManageStorageModal.scss and this file isn't even used by ManageStorageModal.tsx. It would make more sense to move those styles to a more generic location.
Including these styles in App.scss or a new overrides.scss file makes more sense. cc @andrewballantyne
const pvcName = existingData.metadata.name; | ||
if (getPvcDisplayName(existingData) !== createData.nameDesc.name) { | ||
pvcPromises.push( | ||
updatePvcDisplayName(pvcName, namespace, createData.nameDesc.name, { dryRun }), | ||
); | ||
} | ||
if (getPvcDescription(existingData) !== createData.nameDesc.description) { | ||
pvcPromises.push( | ||
updatePvcDescription(pvcName, namespace, createData.nameDesc.description, { dryRun }), | ||
); | ||
} | ||
if (getPvcTotalSize(existingData) !== createData.size) { | ||
pvcPromises.push(updatePvcSize(pvcName, namespace, createData.size, { dryRun })); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A change to name, description and size results in 3 separate patch request and dry runs for a total of 6 network calls. There should only be a single dry run followed by a single patch.
c5a4016
to
5a0b3be
Compare
@christianvogt Updated the code based on your comments, can you re-review it when you get a chance? |
Re-tested. Seems to be working as expected. |
dry run and show error message on storage modal
bba6e29
to
6dc30ef
Compare
@christianvogt Squash, this PR could be merged anytime because it's not going to the |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, xianli123 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes #1480 in commit 1
Closes #1565 in commit 2
Description
On the spawner page:
In storage modal:
How Has This Been Tested?
Test Impact
N/A, mostly network call stuff and reused components
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main